package com.ruoyi.admin.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.admin.domain.MlOrderDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-18
 */
@Mapper
public interface MlOrderDtoMapper extends BaseMapper<MlOrderDto>
{
    /**
     * 查询订单
     * 
     * @param userId 订单主键
     * @return 订单
     */
    public List<MlOrderDto> selectGoodsInfoWhereUserId(Long userId);

    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public MlOrderDto selectMlOrderDtoById(Long id);

    /**
     * 查询订单列表
     * 
     * @param mlOrderDto 订单
     * @return 订单集合
     */
    public List<MlOrderDto> selectMlOrderDtoList(MlOrderDto mlOrderDto);

    /**
     * 新增订单
     * 
     * @param mlOrderDto 订单
     * @return 结果
     */
    public int insertMlOrderDto(MlOrderDto mlOrderDto);

    /**
     * 修改订单
     * 
     * @param mlOrderDto 订单
     * @return 结果
     */
    public int updateMlOrderDto(MlOrderDto mlOrderDto);

    /**
     * 删除订单
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteMlOrderDtoById(Long id);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMlOrderDtoByIds(Long[] ids);
}
